package com.hkp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hkp.mapper.ResearchProjectMapper;
import com.hkp.pojo.ResearchProject;
import com.hkp.service.ResearchProjectService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ResearchProjectServiceImpl extends ServiceImpl<ResearchProjectMapper, ResearchProject> implements ResearchProjectService {
    @Override
    public List<ResearchProject> dynamicQuery(String title, Integer collegeId, Integer status) {
        return baseMapper.dynamicQuery(title, collegeId, status);
    }

    @Override
    public List<Map<String, Object>> getProjectCountByCollege() {
        return baseMapper.getProjectCountByCollege();
    }

    @Override
    public List<Map<String, Object>> getProjectCountByStatus() {
        return baseMapper.getProjectCountByStatus();
    }
}